package server;

import java.awt.Dimension;
import java.awt.TextArea;
import java.awt.event.*;
import java.awt.Frame;
/**
 * 
 * @author Jesse Gorter
 *
 */
public class Gui extends Frame implements WindowListener
{
	TextArea ta1 = new TextArea();
	public Gui()
	{
		ta1.setEditable(false);
		ta1.setPreferredSize(new Dimension(700, 480));
		this.add(ta1);
		this.setSize(new Dimension(800,600));
		this.setVisible(true);
		this.addWindowListener(this);
	}
	public void setText(String string)
	{	
		String text;
		text = ta1.getText() + string;
		ta1.setText(text);
	}
	public void windowActivated(WindowEvent arg0) {
		// TODO Auto-generated method stub
		
	}
	public void windowClosed(WindowEvent arg0) {
		// TODO Auto-generated method stub
		
	}
	public void windowClosing(WindowEvent arg0) {
		// TODO Auto-generated method stub
		System.exit(0);
	}
	public void windowDeactivated(WindowEvent arg0) {
		// TODO Auto-generated method stub
		
	}
	public void windowDeiconified(WindowEvent arg0) {
		// TODO Auto-generated method stub
		
	}
	public void windowIconified(WindowEvent arg0) {
		// TODO Auto-generated method stub
		
	}
	public void windowOpened(WindowEvent arg0) {
		// TODO Auto-generated method stub
		
	}
}
